/*******************************************************************************
* company    : 六瓜编程 2010-2020
* description: 
* date: 2020-12-10 00:17:18
* author : XiaoShengYang
*******************************************************************************/

#ifndef __LG_OP_SENSOR_H
#define __LG_OP_SENSOR_H
#include <lg_types.h>

enum op_sensor_offset {
    OP_SENSOR_0 = 0,
    OP_SENSOR_1,
    OP_SENSOR_2,
    OP_SENSOR_3,
    OP_SENSOR_NUM_MAX,
};

typedef lg_void (*op_sensor_callback)(lg_void *op_sensor_data);

lg_bool lg_op_sensor_init(lg_void);
lg_bool lg_op_sensor_deinit(lg_void);

lg_bool lg_op_sensor_read(lg_bool *op_sensor_data, lg_u8 read_num);

/* 注册回调函数 */
lg_bool lg_op_sensor_callback_register(op_sensor_callback *callback);

/* 触发任务 */
lg_void lg_op_sensor_task_triger(hi_void);
#endif